package com.aliyun.messagemgt.dto.vo;

/**
 * @author
 * @date
 */
public class DepVo {
	/**
	 * 归属部门编码
	 */
    private String ownerDept;
    
    /**
     * 归属部门名字
     */
    private String ownerDeptName;

	public String getOwnerDept() {
		return ownerDept;
	}

	public void setOwnerDept(String ownerDept) {
		this.ownerDept = ownerDept;
	}

	public String getOwnerDeptName() {
		return ownerDeptName;
	}

	public void setOwnerDeptName(String ownerDeptName) {
		this.ownerDeptName = ownerDeptName;
	}



	@Override
	public boolean equals(Object arg0) {
		// TODO Auto-generated method stub
		if (arg0 == null){
			return false;
		}
		if (this.getClass() != arg0.getClass()){
			return false;
		}
		DepVo p = (DepVo) arg0;
		if(ownerDept.equals(p.ownerDept) && ownerDeptName.equals(p.ownerDeptName)){
			return true;
		}else {
			return false;
		}
	}

	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		String str = ownerDept + ownerDeptName;
		return str.hashCode();
	}

}
